<!DOCTYPE html>
<html style="background-color: #F3F3F4">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>记工账本</title>
    <link href="<?php echo base_url()?>public/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo base_url()?>public/font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="<?php echo base_url()?>public/css/plugins/iCheck/custom.css" rel="stylesheet">
    <!-- Morris -->
    <link href="<?php echo base_url()?>public/css/plugins/morris/morris-0.4.3.min.css" rel="stylesheet">
    <!-- Gritter -->
    <link href="<?php echo base_url()?>public/js/plugins/gritter/jquery.gritter.css" rel="stylesheet">
    <link href="<?php echo base_url()?>public/css/animate.css" rel="stylesheet">
    <link href="<?php echo base_url()?>public/css/style.css" rel="stylesheet"></head>
<body>
    <nav class="navbar navbar-static-top white-bg" role="navigation" style="margin-bottom: 0;">
        <!-- <div class="navbar-header">
            <a class="navbar-minimalize minimalize-styl-2 btn btn-primary visible-xs" href="#"> <i class="fa fa-bars"></i>
            </a>
            <img alt="签到通" class="welcome-message" src="<?php echo base_url()?>public/img/logo.png"/>
        </div> -->
        <ul class="nav navbar-top-links navbar-right">
            <li>
                <span class="m-r-sm welcome-message">
                    <img alt="个人头像" style="width:30px" class="img-circle" src="<?php echo base_url()?>public/img/profile_small.jpg"/>
                    &nbsp&nbsp <strong><?php echo $_SESSION['username']?></strong>
                </span>
            </li>
            <!-- <li style="margin-left:30px">
                <span class="m-r-sm  welcome-message orangecolor">
                    <img alt="在线购买" class="img-circle" src="<?php echo base_url()?>public/img/onlinebuy.png"/>
                    在线购买
                </span>
            </li> -->
            <li style="margin-left:30px">
                <a href="<?php echo site_url('user/logout')?>"> <i class="fa fa-sign-out"></i>
                    退出
                </a>
            </li>
        </ul>

    </nav>
    <div id="wrapper">
        <nav class="navbar-default navbar-static-side" style="background-color: #2F4050" role="navigation">
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">

                    <li>
                        <a href="<?php echo site_url('welcome/index')?>">
                            <i class="fa fa-desktop"></i>
                            <span class="nav-label">账单管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li class="active">
                                <a href="<?php echo site_url('welcome/index/all')?>">全部账单</a>
                            </li>
<?php
                            foreach ($book as $val) {
?>
                            <li >
                                <a href="<?php echo site_url('welcome/index/'.$val->id)?>"><?php echo $val->name?></a>
                            </li>
<?php 
                            }
?>
                            
                        </ul>
                    </li>

                    <li class="active">
                        <a href="<?php echo site_url('welcome/user')?>">
                            <i class="fa fa-user"></i>
                            <span class="nav-label">用户管理</span>
                            <span class="fa arrow"></span>
                        </a>
                    </li>
                    <li>
                        <a href="<?php echo site_url('welcome/order')?>">
                            <i class="fa fa-map-marker"></i>
                            <span class="nav-label">订单管理</span>
                            <span class="fa arrow"></span>
                        </a>
                    </li>

                   
                </ul>
            </div>
        </nav>
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row">
                <div class="col-lg-12">
                    <div class="wrapper wrapper-content">


                            <div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
<?php
foreach($info as $val){
?>
    <div class="col-lg-4">
        <div class="contact-box">
            <a href="<?php echo site_url('welcome/user').'/'. $val->id?>">
            <div class="col-sm-4">
                <div class="text-center">
                    <img alt="image" class="img-circle m-t-xs img-responsive" src="">
                    <div class="m-t-xs font-bold">
                    <?php echo $val->name?><br>
                    </div>
                </div>
            </div>
            <div class="col-sm-8">
                <h3><strong>日薪：<?php echo $val->salary?></strong></h3>
                <p><i class="fa fa-map-marker"></i>电话：<?php echo $val->tel?></p>
                <p>薪酬：<?php echo $val->attendance_salary - $val->amount?></p>
                <address>
                    备注：<?php echo $val->remark?>
                </address>
            </div>
            <div class="clearfix"></div>
            </a>
        </div>
    </div>
<?php
}
?>
</div>
                                </div>
                            </div>

                        </div>

                    </div>
                </div>
                <div class="footer fixed">
                    <div class="pull-right">
                        10GB of
                        <strong>250GB</strong>
                        Free.
                    </div>
                    <div>
                        <strong>Copyright</strong>
                        &copy; 2016.Company name All rights reserved. 成都钉客科技有限公司 蜀ICP备16015088号
                    </div>
                </div>
            </div>
        </div>

    </div>

<!-- Mainly scripts -->
<script src="<?php echo base_url()?>public/js/jquery-2.1.1.js"></script>
<script src="<?php echo base_url()?>public/js/bootstrap.min.js"></script>
<script src="<?php echo base_url()?>public/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="<?php echo base_url()?>public/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

<!-- Flot -->
<script src="<?php echo base_url()?>public/js/plugins/flot/jquery.flot.js"></script>
<script src="<?php echo base_url()?>public/js/plugins/flot/jquery.flot.tooltip.min.js"></script>
<script src="<?php echo base_url()?>public/js/plugins/flot/jquery.flot.spline.js"></script>
<script src="<?php echo base_url()?>public/js/plugins/flot/jquery.flot.resize.js"></script>
<script src="<?php echo base_url()?>public/js/plugins/flot/jquery.flot.pie.js"></script>

<!-- Peity -->
<script src="<?php echo base_url()?>public/js/plugins/peity/jquery.peity.min.js"></script>
<script src="<?php echo base_url()?>public/js/demo/peity-demo.js"></script>

<!-- Custom and plugin javascript -->
<script src="<?php echo base_url()?>public/js/inspinia.js"></script>
<script src="<?php echo base_url()?>public/js/plugins/pace/pace.min.js"></script>

<!-- iCheck -->
<script src="<?php echo base_url()?>public/js/plugins/iCheck/icheck.min.js"></script>

<!-- jQuery UI -->
<script src="<?php echo base_url()?>public/js/plugins/jquery-ui/jquery-ui.min.js"></script>

<!-- GITTER -->
<script src="<?php echo base_url()?>public/js/plugins/gritter/jquery.gritter.min.js"></script>

<!-- EayPIE -->
<script src="<?php echo base_url()?>public/js/plugins/easypiechart/jquery.easypiechart.js"></script>

<!-- Sparkline -->
<script src="<?php echo base_url()?>public/js/plugins/sparkline/jquery.sparkline.min.js"></script>

<!-- Sparkline demo data  -->
<script src="<?php echo base_url()?>public/js/demo/sparkline-demo.js"></script>
</body>
</html>